/*    */ package com.lmpop.createIndex.search;
/*    */ 
/*    */ import com.lmpop.createIndex.searchModel.Queue;
/*    */ import com.lmpop.createIndex.searchModel.QueueValue;
/*    */ import com.lmpop.createIndex.searchModel.SearchData;
/*    */ import com.lmpop.createIndex.searchModel.SearchModel;
/*    */ import java.io.IOException;
/*    */ import java.util.ArrayList;
/*    */ import java.util.List;
/*    */ import java.util.Map;
/*    */ 
/*    */ public class SrcGoodsIndexFiles
/*    */ {
/*    */   public ProperUtil properUtil;
/*    */   private String file_path;
/*    */ 
/*    */   public SrcGoodsIndexFiles()
/*    */   {
/* 21 */     this.properUtil = new ProperUtil();
/* 22 */     this.file_path = this.properUtil.getFilePathByModel("srcgoods");
/*    */   }
/*    */ 
/*    */   public List getSrcGoodsInfo(Map paraMap) throws IOException {
/* 26 */     ArrayList showList = new ArrayList();
/* 27 */     SearchData search = new SearchData();
/* 28 */     ArrayList paraList = new ArrayList();
/*    */ 
/* 30 */     String title = ""; String cust_name = ""; String send_type = ""; String in_date = ""; String orderby = "in_date";
/* 31 */     String e = ""; String f = ""; String g = ""; String area_id = ""; String price = ""; String keyword = ""; String cust_id = "";
/*    */ 
/* 33 */     if (paraMap.get("cust_id") != null) cust_id = paraMap.get("cust_id").toString();
/* 34 */     if (paraMap.get("in_date") != null) in_date = paraMap.get("in_date").toString();
/* 35 */     if (paraMap.get("title") != null) title = paraMap.get("title").toString();
/* 36 */     if (paraMap.get("cust_name") != null) cust_name = paraMap.get("cust_name").toString();
/* 37 */     if (paraMap.get("price") != null) price = paraMap.get("price").toString();
/* 38 */     if (paraMap.get("send_type") != null) send_type = paraMap.get("send_type").toString();
/* 39 */     if (paraMap.get("e") != null) e = paraMap.get("e").toString();
/* 40 */     if (paraMap.get("f") != null) f = paraMap.get("f").toString();
/* 41 */     if (paraMap.get("g") != null) g = paraMap.get("g").toString();
/* 42 */     if (paraMap.get("keyword") != null) keyword = paraMap.get("keyword").toString();
/* 43 */     if (paraMap.get("orderby") != null) orderby = paraMap.get("orderby").toString();
/*    */ 
/* 45 */     Queue queue = new Queue(new QueueValue[] { new QueueValue(orderby, 2, true) });
/*    */ 
/* 47 */     paraList.add(new SearchModel("0", "cust_id", cust_id));
/* 48 */     paraList.add(new SearchModel("0", "cust_name", cust_name));
/* 49 */     paraList.add(new SearchModel("0", "title", title));
/* 50 */     paraList.add(new SearchModel("0", "send_type", send_type));
/* 51 */     paraList.add(new SearchModel("0", "area_attr", area_id));
/* 52 */     paraList.add(new SearchModel("1", "in_date", in_date));
/* 53 */     paraList.add(new SearchModel("1", "price", price));
/* 54 */     paraList.add(new SearchModel("0", "e", e));
/* 55 */     paraList.add(new SearchModel("0", "f", f));
/* 56 */     paraList.add(new SearchModel("0", "g", g));
/* 57 */     paraList.add(new SearchModel("2", keyword, new String[] { "cust_name", "title" }));
/* 58 */     showList = search.getSearchInfo(this.file_path, paraList, queue);
/* 59 */     return showList;
/*    */   }
/*    */ }

/* Location:           F:\电商\commons-utils.jar
 * Qualified Name:     com.lmpop.createIndex.search.SrcGoodsIndexFiles
 * JD-Core Version:    0.6.0
 */